<template>
	<button @tap="back" class="backBtn">
		<img src="https://mmbiz.qpic.cn/mmbiz_png/Qs5ZVics1SyBPlbEPsNYyb0C7qcNZD4AQibLh6ZdSSPmicGhCVNb7Cu7n4xjV5tKLr36J3dMU1o4ianSUlVVdic2neg/640?wx_fmt=png&amp;from=appmsg"
			alt="" class="icon icon3" />
		返回
	</button>
</template>

<script>
	export default {
		name: "backbtn",
		methods: {
			back() {
				uni.reLaunch({
					url: '/pages/index/index'
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.backBtn {
		position: absolute;
		width: 20%;
		height: 35px;
		line-height: 35px;
		margin-left: 2vw;
		float: left;
		background: rgba(0, 0, 0, .3);
		border-radius: 250px;
		color: #fff;
		padding: 0;
		z-index: 9999;

		
		.icon3 {
		  width: 40rpx;
		  height: 40rpx;
		  margin-top: 15rpx;
		}
		
		.icon {
		  display: inline-block;
		  width: 20px;
		  height: 20px;
		  margin-right: 5px;
		  vertical-align: middle;
		  margin-top: -3px;
		}
	}
</style>